<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>盒子模型之细线边框</title>
    <style>
        table.collapse {
            width: 100%;
            text-align: center;
            border: 2px solid greenyellow;
            border-collapse: collapse;
        }

        table.collapse td,
        table.collapse tr,
        table.collapse th {
            border: 2px dotted black;
            padding: 8px;
            text-align: center;
        }
    </style>
</head>

<body>
    <table class="collapse">
        <tr>
            <th>姓名</th>
            <th>年龄</th>
            <th>职业</th>
        </tr>
        <tr>
            <td>张三</td>
            <td>28</td>
            <td>工程师</td>
        </tr>
        <tr>
            <td>李四</td>
            <td>35</td>
            <td>设计师</td>
        </tr>
    </table>
</body>

</html>